package com.bing.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 徐
 * @version 1.0
 * 标识一个控制器
 * @RestController springmvc的组合注解
 * @Controller + @ResponseBody
 */
@RestController
public class HiController {

    @RequestMapping("/hi")
    public String hi(){
        return "hi springboot HiController";
    }
}
